CiscoXaaSBilling

(0 reviews)

Python - Code Sample

NOTE: These are untested code samples provided for a conceptual understanding only. # Request / Response

import requests

url = "https://apx.cisco.com/ccw/api/sbp/v1.0/subscription/usage"

payload = "{\n  \"uuid\": \"jhfsdjkhfsdkh3489434\",\n  \"createdBy\": \"user_id\",\n  \"createdDateTime\": \"2017-01-24T16:00:00-08:00\",\n  \"billingAddressId\": 123456789,\n  \"invoiceList\": [\n    {\n      \"invoiceNumber\": 123\n    },\n    {\n      \"invoiceNumber\": 456\n    }\n  ],\n  \"beginDate\": \"2017-01-31\",\n  \"endDate\": \"2017-01-31\",\n  \"pageNumber\": 1\n}\n"
headers = {
    'content-type': "application/json",
    'authorization': "Bearer uIQxCGrC6etCBY2ufYozpVU10hwE",
    'cache-control': "no-cache"
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Reviews